﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using CDB.LinqModel.Data;

namespace CDB.LinqModel
{
    public partial class BuilderWork
    {
        #region Variable Declaration 
        private IDataRepository _dataObject;
        #endregion //Variable Declaration

        public BuilderWork(IDataRepository dataObject)
            : this()
        {
            _dataObject = dataObject;
        }
        public List<BuilderWork> GetAllWorksByBuilderId()
        {
            return _dataObject.GetAllWorksByBuilderId(this);
        }
        public void DeleteWorksByBuilderId(int builderId)
        {
            _dataObject.DeleteWorksByBuilderId(builderId);
        }
        public void Create()
        {
            _dataObject.CreateBuilderWorks(this);
        }
    }
}
